import request from '@/utils/request'

// 查询乡镇基础指标统计列表
export function listIndexTown(query) {
  return request({
    url: '/ybyj/indexTown/list',
    method: 'get',
    params: query
  })
}

// 查询乡镇基础指标统计详细
export function getIndexTown(id) {
  return request({
    url: '/ybyj/indexTown/' + id,
    method: 'get'
  })
}

// 新增乡镇基础指标统计
export function addIndexTown(data) {
  return request({
    url: '/ybyj/indexTown',
    method: 'post',
    data: data
  })
}

// 修改乡镇基础指标统计
export function updateIndexTown(data) {
  return request({
    url: '/ybyj/indexTown',
    method: 'put',
    data: data
  })
}

// 删除乡镇基础指标统计
export function delIndexTown(id) {
  return request({
    url: '/ybyj/indexTown/' + id,
    method: 'delete'
  })
}


